package com.td.module.farmer.controller.admin.employ.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
* 农业社会化服务 Base VO，提供给添加、修改、详细的子 VO 使用
* 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
*/
@Data
public class EmployBaseVO {

    @ApiModelProperty(value = "服务名称", required = true, example = "赵六")
    @NotNull(message = "服务名称不能为空")
    private String employName;

    @ApiModelProperty(value = "服务类型", example = "1")
    private Integer employType;

    @ApiModelProperty(value = "服务主体", required = true)
    @NotNull(message = "服务主体不能为空")
    private String subject;

    @ApiModelProperty(value = "服务区域", required = true)
    @NotNull(message = "服务区域不能为空")
    private String region;

    @ApiModelProperty(value = "服务开始时间", required = true)
    @NotNull(message = "服务开始时间不能为空")
    private LocalDateTime employStartTime;

    @ApiModelProperty(value = "服务结束时间")
    private LocalDateTime employEndTime;

    @ApiModelProperty(value = "服务详情")
    private String details;

    @ApiModelProperty(value = "服务图片")
    private String picUrl;

}
